from django.conf.urls import patterns, include, url
from app import views
from django.contrib import admin
admin.autodiscover()

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'SRPeliculas.views.home', name='home'),
    # url(r'^SRPeliculas/', include('SRPeliculas.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    url(r'^$', views.home),
    url(r'^home/$', views.home),
    url(r'^peliculas-search', views.peliculas_search),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^genero/$', views.genero),
    url(r'^pelicula/$', views.pelicula),
    url(r'^ranking/$',views.ranking),
    url(r'^criticas-pelicula/$',views.criticas_pelicula),
    url(r'^critica/$',views.critica),
    url(r'^critica-add/$', views.critica_add),
    url(r'^critica-mod/$', views.critica_mod),
    url(r'^critica-delete/$', views.critica_delete),
    url(r'^critica-delete-confirmacion/$', views.critica_delete_confirmacion),
    url(r'^login/$', views.login_user),
    url(r'^logout/$', views.logout_user),
    url(r'^registro-user/$', views.registro),
    url(r'^registro-votacion/$', views.registro_votacion),
    url(r'^perfil/$', views.perfil),
    url(r'^criticas-user/$', views.criticas_user),
    url(r'valoraciones-user/$', views.valoraciones_user),
    url(r'^amistades/$', views.amistades),
    url(r'^amigos-add/$', views.amigos_add),
    url(r'^amigos-delete/$', views.amigos_delete),
    url(r'^amigos-delete-confimacion/$', views.amigos_delete_confirmacion),
    url(r'^configuracion/$', views.configuracion),
    url(r'^admin-main/$', views.admin_main),
    url(r'^login-admin/$', views.login_admin),
    url(r'^logout-admin/$', views.logout_admin),
    url(r'^admin-peliculas/$', views.admin_peliculas),
    url(r'^admin-peliculas/search/$', views.admin_peliculas_search),
    url(r'^admin-peliculas/add/$', views.admin_peliculas_add),
    url(r'^admin-peliculas/mod/$', views.admin_peliculas_mod),
    url(r'^admin-peliculas/delete/$', views.admin_peliculas_delete),
    url(r'^admin-peliculas/delete/confirmacion/$', views.admin_peliculas_delete_confirmacion),
    url(r'^admin-usuarios/$', views.admin_usuarios),
    url(r'^admin-usuarios/search/$', views.admin_usuarios_search),
    url(r'^admin-usuarios/mod/$', views.admin_usuarios_mod),
    url(r'^admin-usuarios/ver/$', views.admin_usuarios_ver),
    url(r'^admin-usuarios/ver/search/$', views.admin_usuarios_ver_search),
    url(r'^admin-usuarios/delete/$', views.admin_usuarios_delete),
    url(r'^admin-usuarios/delete/confirmacion/$', views.admin_usuarios_delete_confirmacion),
    url(r'^admin-usuarios/add/$', views.admin_usuarios_add),
    url(r'^admin-peliculas/ver/$', views.admin_peliculas_ver),
    url(r'^admin-peliculas/ver/search/$', views.admin_peliculas_ver_search),
    url(r'^admin-critica/$', views.admin_criticas),
    url(r'^admin-critica/mod/$', views.admin_criticas_mod),
    url(r'^admin-critica/delete/$', views.admin_criticas_delete),
    url(r'^admin-critica/delete/confirmacion/$', views.admin_criticas_delete_confirmacion),
)
